// 动态获取host
const host = window.location.host;

const router = {
	host: "https://" + host,
	managerLogin: "/user/manager/login",
	logout: "/user/logout",
	systemInfo: "/actuator/health",
	getUserInfo: "/user/manager/getUserInfo",
	getAllUser: "/user/manager/getAllUser",
	deleteUser: "/user/manager/deleteUser",
	updatePass: "/user/update/password",
	authDetail: "/user/auth/get",
	depts: "/dept/get",
	updateUser: "/user/manager/update",
	addDept: "/dept/add",
	addUser: "/user/add",
	getItems: "/item/getItem",
	updateItem: "/item/updateItem",
	countItem: '/item/count',
	getInvoices: '/invoice/get/byDate',
	getCanTrans: '/user/manager/canTrans',
	doTrans: '/user/manager/doTrans',
}